package gui.actions;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class DoubleActionListener implements ActionListener {

	private final ActionListener firstAction;
	private final ActionListener secondAction;

	public DoubleActionListener(ActionListener firstAction, ActionListener secondAction) {
		this.firstAction = firstAction;
		this.secondAction = secondAction;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		firstAction.actionPerformed(e);
		secondAction.actionPerformed(e);
	}
	
}
